<span class="lv-highlight-content">
  <ng-container *ngIf="!nodeList?.length; else contentTpl">{{ lvWholeStr }}</ng-container>
</span>

<ng-template #contentTpl>
  <span *ngFor="let node of nodeList" [class]="node.className">{{ node.content }}</span>
</ng-template>
